/**
 * SEVAS - Swiss Electronic Vaccination Advisor Service / Agile Development
 *
 * $Id: Vaccination.java 29 2010-08-18 16:51:14Z zimmr7@bfh.ch $
 */
package ch.bfh.sevas.gui;

import ch.bfh.sevas.DateConverter;
import java.util.Date;
import javax.swing.table.DefaultTableCellRenderer;

public class DateRenderer extends DefaultTableCellRenderer {

    private DateConverter dateConverter;

    public DateRenderer() {
        dateConverter = new DateConverter();
    }

    public void setValue(Object value) {
        setText((value == null) ? "" : dateConverter.convertForward((Date)value));
    }
}